package @{packagePath}.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jflyfox.dudu.component.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import @{packagePath}.model.@{crud.table.className};
import @{packagePath}.dao.@{strutils.toUpperCaseFirst(crud.urlKey)}Mapper;
import @{packagePath}.service.I@{strutils.toUpperCaseFirst(crud.urlKey)}Service;

/**
 * @{crud.table.remarks} 服务层口层
 *
 * @author flyfox 369191470@qq.com on @{now}.
 */
@Service
public class @{strutils.toUpperCaseFirst(crud.urlKey)}ServiceImpl extends BaseServiceImpl<@{strutils.toUpperCaseFirst(crud.urlKey)}Mapper, @{crud.table.className}> implements I@{strutils.toUpperCaseFirst(crud.urlKey)}Service {

    public Page<@{crud.table.className}> select@{strutils.toUpperCaseFirst(crud.urlKey)}Page(Page<@{crud.table.className}> page, Wrapper<@{crud.table.className}> wrapper) {
        page.setRecords(baseMapper.select@{strutils.toUpperCaseFirst(crud.urlKey)}Page(page, wrapper));
        return page;
    }
}